package com.hotel.product.controller;


import com.hotel.common.vo.R;
import com.hotel.product.entity.LevelReq;
import com.hotel.product.service.UserLevelService;
import com.hotel.user.entity.ResponseDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户积分表 前端控制器
 * </p>
 *
 * @author KK
 * @since 2024-06-18
 */
@RestController
@RequestMapping("/api/userPoints")
public class UserLevelController {
    @Autowired
    private UserLevelService userLevelService;


    @GetMapping("/getUserPoint")
   public R getUserPoints(HttpServletRequest request){
        return userLevelService.getUserPoints(request);
//        return new ResponseDTO<>(200, "Purchase successful", null);
    }
}

